<?php 
$this->Html->styleBlock("
	ul.gallery_toolbar { width:180px; display: block; position: absolute; background: url(../../img/firma/bg_toolbar.png) repeat; margin-top: -30px}
	ul.gallery_toolbar li { display: block; float: left; width: 32px; height: 32px; margin: 3px; padding: 2px; background: url(../../img/firma/bg_toolbar.png) repeat; }
	ul.gallery_toolbar li a { display: block; padding: 0px; margin: 0px; width: 32px; height: 32px; background: none; }
	ul.gallery_toolbar li a:hover {display: block; padding: 0px; margin: 0px; width: 32px; height: 32px; background: none;}
	ul.gallery_toolbar li a img { padding: 0px; margin: 0px;  }
	ul.gallery_toolbar li:hover { background: #fff; width: 32px; height: 32px;}
",array('inline'=>false));
?>


<?php if($this->params['controller']=='pages'){
	$action = (isset($this->params['pass'][0]))?$this->params['pass'][0]:'display';
}else{
	$action = $this->params['action'];
}
?>
<ul class="right gallery gallery_toolbar">
	<li class="edit"><?php echo $html->link($html->image('firma/gallery_picture_add.png',array('title'=>__('Add',true))), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'add',$category_id),
        array('escape'=>false,'class'=>'','onclick'=>"return hs.htmlExpand(this, { objectType: 'iframe' } )")); ?></li>
	<li class="edit"><?php echo $html->link($html->image('firma/page_refresh.png',array('title'=>__('Refresh Page',true))), 
        '/'.$this->params['url']['url'],
        array('escape'=>false,'class'=>'')); ?></li>  
    <li class="edit"><?php echo $html->link($html->image('firma/gallery_folder_delete.png',array('title'=>__('Delete Gallery',true))), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'delete_gallery',$category_id),
        array('escape'=>false,'class'=>'')); ?></li>

	<li class="edit"><?php echo $html->link($html->image('firma/page_edit.png',array('title'=>__('Edit',true))), 
	        array('plugin'=>false,'controller'=>'cms_sections','action'=>'quick_edit',$this->params['controller'],$action,$i),
	        array('escape'=>false,'class'=>'','onclick'=>"return hs.htmlExpand(this, { objectType: 'iframe' } )")); ?></li>  
</ul>

